﻿@using ECG.Utility
@model List<ECG.Common.ProductCategoryParentCateDto>

@{
    if (Model.Any())
    {
        foreach (var item in Model)
        {
    <div class="pp1-tab">
        <div class="pp1-tab-title clearfix">
            <a href="@Url.Action("Index", "Category", new { categoryName = StringUtil.RemoveSpecialCharactersVn(item.Name), categoryId = item.Id })" class="pp1-title-left">
                <h3>@item.Name</h3>
            </a>
            <span class="pp1-title-right">
                <a href="@Url.Action("Index", "Category", new { categoryName = StringUtil.RemoveSpecialCharactersVn(item.Name), categoryId = item.Id })">Xem tất cả</a>
            </span>
        </div>
        @Html.Action("GetProductByCate", "Category", new { categoryId = item.Id })
        @Html.Action("GetProviderByCate", "Category", new { categoryId = item.Id })
    </div>
        }
    }
}


